package com.lilosoft.core.utils;

import com.baomidou.mybatisplus.toolkit.IdWorker;

/**
 * 唯一id生成器
 *
 * @author qiusheng
 * @Date 2018-10-30
 */
public class IdGenerator {

    public static String getId() {
        return String.valueOf(IdWorker.getId());
    }

    public static long getIdLong() {
        return IdWorker.getId();
    }
    
    public static String get32UUID(){
    	 return IdWorker.get32UUID();
    }
    
    public static void main(String[] args) {
		System.out.println(getId());
		System.out.println(getId());
		System.out.println(getId());
		System.out.println(getId());
		System.out.println(getId());
		
		System.out.println(getIdLong());
		System.out.println(getIdLong());
		System.out.println(getIdLong());
		System.out.println(getIdLong());
	}
}
